Add test file for top_k functionality#1938
Merged
oleksandr-pavlyk merged 3 commits intofeature/topkfrom Dec 27, 2024
Merged
Conversation
|
View rendered docs @ https://intelpython.github.io/dpctl/pulls/1938/index.html |
|
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_332 ran successfully. |
Contributor
Author
|
One test failed on CPU: |
Contributor
Author
|
Interestingly, there is no issue when the test is run on Xeon: |
Collaborator
And no issue when run on another (different) AMD CPU: $ python -m dpctl -f
Platform 0 ::
Name Intel(R) OpenCL
Version OpenCL 3.0 LINUX
Vendor Intel(R) Corporation
Backend opencl
Num Devices 1
# 0
Name AMD EPYC 7R13 Processor
Version 2024.18.12.0.05_160000
Filter string opencl:cpu:0
$ SYCL_CACHE_PERSISTENT=1 ONEAPI_DEVICE_SELECTOR=opencl:cpu python -m pytest dpctl/tests/test_usm_ndarray_top_k.py
================================================= test session starts ==================================================
platform linux -- Python 3.9.21, pytest-8.3.4, pluggy-1.5.0
rootdir: /home/ubuntu/repos/dpctl
configfile: pyproject.toml
collected 143 items
dpctl/tests/test_usm_ndarray_top_k.py .......................................................................... [ 51%]
..................................................................... [100%]
================================================= 143 passed in 1.14s ================================================== |
|
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_333 ran successfully. |
|
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_334 ran successfully. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a test file with few basic tests for
top_k. To be extended.